﻿<UserControl x:Class="AtletIS.Shared.WpfControls.ResultBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="44" d:DesignWidth="790" FontFamily="Trebuchet MS" >

    <Border
        CornerRadius="4"
        BorderThickness="1" BorderBrush="SteelBlue" Background="White"
        Margin="5 2">

        <Border.RenderTransform>
            <SkewTransform CenterX="0" CenterY="22" AngleX="-14" AngleY="0" />
        </Border.RenderTransform>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="290" />
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="150"/>
                <ColumnDefinition Width="45"/>
            </Grid.ColumnDefinitions>

            <Border
                Grid.Column="1"
                CornerRadius="4"
                BorderBrush="LightGray"
                BorderThickness="2"
                Margin="8 4"
                Background="Yellow">

                <TextBlock 
                    Name="txtOrder" 
                    FontSize="20"
                    Foreground="SteelBlue"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    
                    <TextBlock.RenderTransform>
                        <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                    </TextBlock.RenderTransform>

                </TextBlock>
            </Border>

            <Image
                Grid.Column="2"
                Name="iCountry"
                Width="34"
                Height="24">

                <Image.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </Image.RenderTransform>

                <Image.BitmapEffect>
                    <DropShadowBitmapEffect Color="SteelBlue" Direction="320" ShadowDepth="1" Opacity="1" Softness="1" />
                </Image.BitmapEffect>

            </Image>

            <TextBlock
                Grid.Column="3"
                Name="txtStartNumber"
                Foreground="SteelBlue"
                FontSize="16"
                Margin="2"
                VerticalAlignment="Center"
                HorizontalAlignment="Center">
                
                <TextBlock.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </TextBlock.RenderTransform>
                
            </TextBlock>

            <TextBlock
                Grid.Column="4"
                Name="txtName"
                Foreground="SteelBlue"
                FontSize="24"
                Margin="2"
                VerticalAlignment="Center">
                
                <TextBlock.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </TextBlock.RenderTransform>
                
            </TextBlock>

            <!-- Reaction -->
            <StackPanel
                Name="spReact"
                Grid.Column="5"
                Orientation="Horizontal">

                <Border
                    CornerRadius="4 0 0 4"
                    BorderBrush="LightGray"
                    BorderThickness="2"
                    Margin="8 8 0 8"
                    Background="LightGray">

                    <TextBlock
                        Text="R"
                        FontSize="10"
                        Foreground="White"
                        Margin="4"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"/>

                </Border>

                <Border
                    Width="85"
                    CornerRadius="0 4 4 0"
                    BorderBrush="LightGray"
                    BorderThickness="2"
                    Margin="0 8 8 8"
                    Background="Yellow">

                    <TextBlock
                        Name="txtReaction"
                        FontSize="14"
                        Foreground="SteelBlue"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center">
                
                        <TextBlock.RenderTransform>
                            <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                        </TextBlock.RenderTransform>

                    </TextBlock>

                </Border>

            </StackPanel>

            <!-- txtResult -->
            <Border
                Grid.Column="6"
                CornerRadius="4"
                BorderBrush="LightGray"
                BorderThickness="2"
                Margin="4"
                Background="Yellow">

                <TextBlock
                    Name="txtResult"
                    Foreground="SteelBlue"
                    FontSize="20"
                    Margin="2"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center">
                    
                    <TextBlock.RenderTransform>
                        <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                    </TextBlock.RenderTransform>
                    
                </TextBlock>

            </Border>

            <!-- txtSbPb -->
            <Border
                Grid.Column="7"
                Name="borPbSb"
                CornerRadius="4"
                BorderThickness="2"
                BorderBrush="LightGray"
                Margin="8"
                Background="Yellow">

                <TextBlock 
                    Name="txtPbSb"
                    FontSize="13"
                    Foreground="SteelBlue"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    
                    <!--<TextBlock.RenderTransform>
                        <SkewTransform CenterX="0" CenterY="10" AngleX="14" AngleY="0" />
                    </TextBlock.RenderTransform>-->
                    
                </TextBlock>
            </Border>


        </Grid>

    </Border>

</UserControl>
